package com.zmc.product.infrastructure.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zmc.common.utils.PageUtils;
import com.zmc.product.infrastructure.entity.CommodityGoodsEntity;
import com.zmc.product.infrastructure.bean.query.CommodityGoodsQuery;

import java.util.List;

/**
 * 商品中心的商品信息基础表
 *
 * @author zmc
 * @email 
 * @date 2024-10-14 18:43:35
 */
public interface CommodityGoodsService extends IService<CommodityGoodsEntity> {

    PageUtils pageCommodityGoodsList(CommodityGoodsQuery query);

    List<CommodityGoodsEntity> selectCommodityGoodsList(CommodityGoodsQuery query);

    /**
     * 商品转为待审核状态
     * */
    void goodToEditStatus(String spuId);

    CommodityGoodsEntity getBySpuId(String spuId);

    Long countByMerchantId(String merchantId);

    List<CommodityGoodsEntity> listBySpuIds(List<String> spuIds);

}

